<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="renderer" content="webkit|ie-comp|ie-stand">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <title>设备维修配置</title>
</head>

<body>
  <div id="app">
    <div class="repair-setting">
      <el-tabs v-model="activeMenu" class="repair-setting-tabs full-tabs">
        <el-tab-pane lazy v-for="menu in menus" :key="menu.name" :label="menu.label" :name="menu.name">
          <component :is="menu.url" class="menu-item"></component>
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</body>

<script src="../../myJs/importFile.js"></script>
<script>
  importFile([
    "/vueSystem/components/css/searchBtnView.css",
    "./css/repairSalarySetting.css",
    "./css/repairStarSetting.css",
    "./css/repairVisitSetting.css"
  ], [
    "/vueSystem/i18n/index.js",
    "/vueSystem/components/searchBtnView.js",
    "/vueSystem/models/baseModel.js"
  ]);

</script>

<script src="./repairSalaryForm.js"></script>
<script src="./repairSalarySetting.js"></script>

<script src="./repairStarForm.js"></script>
<script src="./repairStarSetting.js"></script>

<script src="./repairVisitForm.js"></script>
<script src="./repairVisitSetting.js"></script>

<script>
  var app = new Vue({
    el: '#app',
    data: function () {
      return {
        activeMenu: 'repairSalarySetting',
        menus: [{
          label: '维修薪资配置',
          name: 'repairSalarySetting',
          url: 'repair-salary-setting'
        }, {
          label: '维修星级配置',
          name: 'repairStarSetting',
          url: 'repair-star-setting'
        }, {
          label: '维修回访配置',
          name: 'repairVisitSetting',
          url: 'repair-visit-setting'
        }]
      };
    },

    components: {
      RepairSalarySetting: RepairSalarySetting,
      RepairStarSetting: RepairStarSetting,
      RepairVisitSetting: RepairVisitSetting
    }
  });

</script>

<style>
  .repair-setting {
    padding-left: 20px;
    height: 100%;
  }

  .menu-item {
    position: relative;
  }

  .repair-setting .repair-setting-item {
    padding: 10px 20px;
    padding-left: 0;
    height: calc(100% - 20px);
    display: flex;
    flex-direction: column;
  }

  .repair-setting .repair-setting-table-div {
    flex: 1;
    overflow: auto;
  }

  .repair-setting-search-form .el-form-item {
    margin-bottom: 10px;
  }

  .search-input {
    width: 180px;
  }

</style>

</html>
